package com.it.xyx.demo.api;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Classname StorageFeignApi
 * @Description TODO
 * @Date 2024/8/22 22:23
 * @Created by 潜伏Sir
 */
@FeignClient(value = "account-server")
public interface AccountFeignApi {
    @PostMapping(value = "/storage/decrease")
    String decrease(@RequestParam("productId") Long productId
            , @RequestParam("money") Long money);


}
